<%-- 
    Document   : newjsp2
    Created on : 2024-6-2, 10:02:01
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       
         <div style="margin:0 auto;">
          <table align="center" >
          <form action="select.jsp" method="post">
                <td>学号<input type="text" name="sno"/></td>
                <td><input type="submit" value="查询"/><%=request.getAttribute("message")==null?"":request.getAttribute("message")%></td>
          </form>
         </table>
         <table align="center" border="1">
         <form action="alter.jsp" method="post">
             <tr><td>学号：</td>       
             <td><input type="text" name="sno" value="<%=request.getAttribute("sno")==null?"":request.getAttribute("sno")%>" /></td></tr>
             <tr><td>姓名：</td>       
             <td><input type="text" name="sname" value="<%=request.getAttribute("sname")==null?"":request.getAttribute("sname")%>"/></td></tr>
             <tr><td>性别：</td>       
             <td><input type="text" name="sex"  value="<%=request.getAttribute("sex")==null?"":request.getAttribute("sex")%>"/></td></tr>
             <tr><td>宿舍号：</td>       
             <td><input type="text" name="dno" value="<%=request.getAttribute("dno")==null?"":request.getAttribute("dno")%>" /></td></tr>
             <tr ><td colspan="2" align="center"><input type="submit" value="修改信息"/>
                     <a href="delete.jsp?sno=<%=request.getAttribute("sno")==null?"":request.getAttribute("sno")%>"> <input type="button" value="删除"></a></td></tr>
             </form>
            </table>
        </div>  
    </body>
</html>
